<template>
    <div>
      <h2>登录</h2>
      <table>
        <tbody>
          
          <tr>
            <td>名称</td>
            <td>
              <input type="text" />
            </td>
          </tr>
          <tr>
            <td>密码</td>
            <td>
              <input type="text"  />
            </td>
          </tr>
        
          <tr>
            <td></td>
            <td>
              <button @click="login">登录</button>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </template>
  
  <script setup lang="ts">
  import { ref, reactive, onMounted } from "vue";
  import { useRouter } from "vue-router";
  import axios from "axios";
  import "bootstrap/dist/css/bootstrap.min.css";
  
  const router = useRouter();

  const login=()=>{
    alert("登录成功")
  }
  

  /*
  const login=()=>{
   
      axios.get("https://localhost:7143/api/fanghao/Login?name="+fname+"&pwd="+pwd,).then(res=>{
              if(res.data==1){
                alert("登录成功");
              }
              if(res.data==-1)
              {
                alert("账号不对");
              }
              if(res.data==-2)
              {
                alert("密码不对");
              }
      })
  
  
  }*/
  
  </script>
  
  <style scoped></style>
  